//
//  EveryCell.m
//  B段_开眼
//
//  Created by hu on 16/4/21.
//  Copyright © 2016年 Howie. All rights reserved.
//

#import "EveryCell.h"

@interface EveryCell ()

@property (nonatomic, strong) UILabel *label;

@end

@implementation EveryCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(50, 10, 300, 30)];
        [self.contentView addSubview:_label];
    }
    return self;
}

- (void)setDataWithModel:(id)model
{
    EveryCellModel *everyModel = model;
    _label.text = everyModel.title;
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
